// stores/counter.js
import { defineStore } from 'pinia';

export const useSettingShopStore = defineStore('setting', {
	state: () => {
		return {
			cart: [{
				id: '0',
				name: '',
				price: 0,
				number: 0,
				image: '',
				type: 0,
				weight: 0,
				foodPrice: 0,
				processPrice: 0,
				packPrice: 0,
				typeName: '',
				unit:""
			}],
			address: {
				"id": 0,
				"userId": 0,
				"realName": "",
				"phone": "",
				"housingEstateId": 0,
				"housingEstate": '',
				"detail": "",
				"address": "",
				"postCode": "",
				"longitude": 0,
				"latitude": 0,
				"defaultAddress": true,
				"gender": 0,
				"region": ''
			},
			videoinfo: {
				communityName: '',
				coverUrl: '',
				description: '',
				id: 0,
				name: '',
				readNum: 0,
				releaseTime: '',
				shopName: '',
				videoUrl: ''
			}
		};
	},
	actions: {
		increment() {
			this.cart = [];
		}
	}
});